package com.yeyks.other.dal.dao;

import com.yeyks.other.dal.domain.ActivityInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 活动通知表 Mapper 接口
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    int deleteByPrimaryKey(Long id);

    int insertSelective(ActivityInfo record);

    ActivityInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ActivityInfo record);

    int updateByPrimaryKeyWithBLOBs(ActivityInfo record);

    int updateByPrimaryKey(ActivityInfo record);

    /**
     * 分页查询活动
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<ActivityInfo> selectPage2(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
}
